USB:gadget:designware Device controller bugfixes
authorVipin KUMAR <[email protected]>
Tue, 6 Mar 2012 23:39:38 +0000 (23:39 +0000)
committerMarek Vasut <[email protected]>
Sun, 18 Mar 2012 23:08:17 +0000 (00:08 +0100)
commitdc3e77391859f49a7b0ff403d5708f5d6ea7aba8
tree2782a3d943ff2996d99f1a1e0b6a5f25e9945087
parent2721551a11e64ac639547211dae027eea476af4c
USB:gadget:designware Device controller bugfixes

This patch fixes a few bugs in USB device controller driver.
The fixes are as follows
1. Adding error condition checks eg. NULL return
2. Endpoint other than endpoint 0 (control endpoint) are initialized
only if usb state machine reaches STATE_ADDRESSED or above
3. Zero length packet handling corrected
4. Dead code removed
5. Bulk out endpoint returns after servicing 1 interrupt and returns
back to service if more interrupts are pending

Signed-off-by: Vipin Kumar <[email protected]>
Signed-off-by: Amit Virdi <[email protected]>
Acked-by: Marek Vasut <[email protected]>
drivers/usb/gadget/designware_udc.c